package com.mutual.assistance.auth.converter;

import com.mutual.assistance.auth.model.bo.UserBO;
import com.mutual.assistance.auth.model.po.UserPO;
import com.mutual.assistance.auth.model.vo.AuthParamsVO;
import com.mutual.assistance.auth.model.vo.PasswordAndCodeParamsVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

/**
 * @author chenyuxin
 * @version 1.0
 * @description 认证实体类之间的转换
 * @date 2023/4/15 21:14
 */
@Mapper(componentModel = "spring")
public interface AuthConverterParams {

    @Mapping(target = "payload", ignore = true)
    @Mapping(target = "checkCodeKey", ignore = true)
    @Mapping(target = "cellphone", ignore = true)
    AuthParamsVO passwordAndCodeParamsVO2AuthParamsVO(PasswordAndCodeParamsVO passwordAndCodeParamsVO);


    UserBO userPO2UserBO(UserPO userPO);


}
